<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>计算两个数之间的质数的数量</title>
</head>
<body>
<script>
 function zhishu(a){
      var flag=1//1表示是质数，0表示不是质数
       for(var i=2;i<a;i++){
                  if(a%i==0){
       var  flag=0;
            break;
                   }
       }
       if(flag){
            document.write(a+":是质数")
               }else{
            document.write(a+":不是质数")}
              }
   zhishu(5);
   function index(a,b){
      
   }
   index(100,200)
</script>
    
</body>
</html>